<html lang="en">
	<head>
		<script language="JavaScript">
			function testImage(URL) {
		    var img = new Image; 
        img.onerror = isBad; 
        img.src = URL; 
			}			
			function isBad() {
			  alert('Image doesn\'t exist!');
			}
			
	  </script>
	  <title>yahoo</title>
	</head>
  <body onload="testImage('http://jroller.com/images/holmes.png1');">
    <p> yahoo</p>
  </body>
</html>  